package com.zboot.zbootadmin.project.system.log.service;

import com.alibaba.fastjson.JSONObject;
import com.zboot.zbootadmin.project.system.log.entity.SysLogninIformation;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zboot.zbootadmin.project.system.log.entity.dto.LoginInfoDto;

/**
 * @Author: zyt
 * @Description:
 * @Date: Created in 11:44 2020/11/15
 */
public interface SysLoginInformationService extends IService<SysLogninIformation> {

    /**
     *
     * @Description: 获取ip,浏览器基本信息
     *
     * @author: zyt
     * @date: 16:49 2020/11/17
     * @param: []
     * @return: com.alibaba.fastjson.JSONObject
     *
     */
    void insert(String msg,String status,String userName);

    /**
     *
     * @Description: 登陆信息列表
     *
     * @author: zyt
     * @date: 23:00 2020/11/17
     * @param: [loginDto]
     * @return: com.alibaba.fastjson.JSONObject
     *
     */
    JSONObject getLoginInfo(LoginInfoDto loginDto);

    /**
     *
     * @Description: 清空登陆日志
     *
     * @author: zyt
     * @date: 20:41 2020/11/18
     * @param: []
     * @return: void
     *
     */
    void clearInfo();


}
